

public class User;

// User.cs
namespace LoginRegistrationSystem
{
    public class User
    {
        // 字段
        private string _username;
        private string _password;

        // 属性
        public string Username 
        { 
            get => _username; 
            set => _username = value; 
        }

        public string Password 
        { 
            get => _password; 
            set => _password = value; 
        }

        // 构造函数
        public User(string username, string password)
        {
            _username = username;
            _password = password;
        }
    }
}
